﻿
using Castle.DynamicProxy;
using Net12_AOP;


var generator = new ProxyGenerator();
var hello = generator.CreateClassProxy<Hello>(new BusiInterceptor());
var remoteClient = generator.CreateInterfaceProxyWithoutTarget<RemoteClient>(new RemoteClientProxy());
hello.SayHello("lee");
var res = remoteClient.Call("XSB_Personal_GC");
Console.WriteLine(res);
/*
Before SayHello
SayHello 执行...
Hello! lee, nice to meet you!
After SayHello
*/
